<?php

declare(strict_types=1);

namespace App\Controller\Backend;


use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\HttpServer\Annotation\Middlewares;
use App\Constants\ReturnCode;
use App\Service\UserService;
use App\Service\TestJobService;

#[Controller]
#[Middlewares([\App\Middleware\AuthMiddleware::class])]
class IndexController extends BaseController
{
    #[Inject]
    protected UserService $userService;

    #[Inject]
    protected TestJobService $testJobService;

    #[RequestMapping(path: 'index', methods: 'POST')]
    public function index()
    {
        return $this->result(ReturnCode::SUCCESS, $this->admin);
    }
}
